<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
	"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" 
	content="text/html; charset=utf-8">
<title>校园宿舍管理系统</title>
<link href="${path }/css/style.css" 
	rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<table class="out">
<tr>
    <td class="title">校园宿舍管理系统</td>
</tr>
<tr>
    <td class="subtitle">&nbsp;</td>
</tr>
<tr>
  	<td class="content">
  	<table class="out">
    <tr>
        <td class="left" >
        	<%@ include file="left.jsp"%>
     	</td>
     	
        <td class="right">
        <table class="rightTable">
        <tr>
            <td class="mainMenu">宿舍楼管理员管理</td>
        </tr>
        <tr>
            <td class="rightout">
            <form name="form1" method="post" action="searchTeacher.do">
            <table class="fullTable">
            <tr>                                      
               	<td class="navi"> 
                	功能导航： 
                	<a href="preSaveTeacher.do">添加宿舍楼管理员</a></td>
                <td>查询：
                    <select name="sKey">
                    <option value="name">姓名</option>
                    <option value="tel">电话</option>
                    <option value="username">用户名</option>
                    </select>
                    <input name="sValue" >
                    <input type="submit" value="点击查询">
                </td>
            </tr>
            </table>
            </form>
            
            <table class="fullTable" >
            <tr class="dataTitleTr">
                <th>姓名</th>
                <th>性别</th>
                <th>电话</th>
                <th>用户名</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${teacherList }" var="teacher">  
            <tr class="dataTr">
                <td>${teacher.name}</td>
                <td>${teacher.sex}</td>
                <td>${teacher.tel}</td>
                <td>${teacher.username}</td>
                <td>
                <a href="preSaveTeacher.do?id=${teacher.id }">修改</a> 
                	&nbsp;&nbsp;&nbsp;
                <a href="deleteTeacher.do?id=${teacher.id}" 
                	onClick="return confirm('确定要删除该宿舍楼管理员吗？')">删除</a></td>
            </tr>            
            </c:forEach>
            </table>
            </td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
<tr>
    <td class="bottom">&nbsp;</td>
</tr>
</table>
</center>
</body>
</html>